#include <iostream>
#include "L9_1_coordin.h"

using namespace std;

int main(int argc, char const *argv[])
{
    rect rplace;
    polar pplace;
    cout << "Enter the x and y values: ";
    while (cin >> rplace.x >> rplace.y)
    {
        pplace = rect_to_polar(rplace);
        show_polar(pplace);
        cout << "Next two numbers (q to quit): ";
    }
    cout << "Bye" << endl;
    return 0;
}
